home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / DRDOSTIP.ARJ / CHOICES.DOC < prev    next >
Text File  |  1991-05-14  |  4KB  |  117 lines

  1. DR DOS CHOICES
  2. Copyright (c)1991 by Scott M. Thomas.  All Rights Reserved.
  3.  
  4. SET CHOICE (SCHOICE.EXE) and GET CHOICE (GCHOICE.EXE) are programs that I
  5. wrote which allow you to pass configuration information from CONFIG.SYS to
  6. AUTOEXEC.BAT.  These should work with any PC operating system but were
  7. written to take advantage of DR DOS's decision making capabilities in the
  8. CONFIG.SYS file.
  9.  
  10. I make NO WARRANTY OR GUARANTEE OF ANYKIND that this program will do anything
  11. or not do anything!
  12.  
  13. I am releasing these programs as FREEWARE.  In other words you may use these
  14. programs freely and you don't owe me a cent.  All I ask is that this document
  15. (CHOICES.DOC) and the 2 exe's (GCHOICE.EXE,SCHOICE.EXE) are all distributed
  16. together in unmodified form.  This is copyrighted material and I reserve all
  17. rights to it.
  18.  
  19. SCHOICE.EXE is installed in the CONFIG.SYS file.  It accepts a single
  20. parameter, a number from 0 to 255.  This parameter is used to indicate the
  21. configuration number to GCHOICE.EXE.  The syntax for SCHOICE is:
  22.  
  23.   install schoice.exe 1
  24.  
  25. This example is using configuration one.  The program is not actually
  26. installed, but simply executes and terminates.    The INSTALL command just gave
  27. me a way to execute a program in the CONFIG.SYS file.
  28.  
  29. GCHOICE.EXE is then used in the AUTOEXEC.BAT file to set the ERRORLEVEL to
  30. the value set by SCHOICE.EXE.  After executing GCHOICE.EXE you can then use
  31. the IF ERRORLEVEL statement to detect the configuration.
  32.  
  33. An example CONFIG.SYS file would be:
  34.  
  35.     SHELL=C:\COMMAND.COM C:\ /P /E:256
  36.     BREAK=ON
  37.     BUFFERS=3
  38.     FILES=50
  39.     FCBS=0,0
  40.     FASTOPEN=128
  41.     LASTDRIVE=Z
  42.     HISTORY=ON, 256, OFF
  43.     HIDOS=ON
  44.     ?"LOAD DESQVIEW? " GOTO DESQVIEW
  45.     ?"LOAD WINDOWS? " GOTO WINDOWS
  46.     DEVICE=C:\OS\DRDOS\EMM386.SYS /F=E000 /K=AUTO /B=FFFF
  47.     INSTALL=C:\OS\DRDOS\SCHOICE.EXE 0
  48.     GOTO END
  49.     :WINDOWS
  50.     DEVICE=C:\OS\QEMM\QEMM386.SYS FRAME=E000 HANDLES=16 RAM NOSORT
  51.     DEVICE=C:\OS\QEMM\LOADHI.SYS /R:2 C:\OS\DRDOS\RAMBIOS.SYS
  52.     DEVICE=C:\OS\DRDOS\HIDOS.SYS /BDOS=AUTO
  53.     DEVICE=C:\OS\QEMM\LOADHI.SYS /R:1 C:\OS\WIN\SMARTDRV.SYS 1024 256
  54.     INSTALL=C:\OS\DRDOS\SCHOICE.EXE 2
  55.     GOTO END
  56.     :DESQVIEW
  57.     DEVICE=C:\OS\QEMM\QEMM386.SYS HANDLES=16 RAM NOSORT
  58.     DEVICE=C:\OS\DRDOS\HIDOS.SYS /BDOS=C800
  59.     INSTALL=C:\OS\DRDOS\SCHOICE.EXE 1
  60.     :END
  61.  
  62. An example AUTOEXEC.BAT file would be:
  63.  
  64.     @ECHO OFF
  65.     VERIFY ON
  66.     PROMPT $P$G
  67.     PATH C:\APPS\CLA;C:\APPS\C\BIN;C:\OS\WIN;C:\OS\DRDOS;C:\APPS\SYSUTIL;C:\APPS\PCTOOLS;C:\OS\QEMM
  68.     SET LIB=C:\APPS\CLA
  69.     SET OBJ=C:\APPS\CLA
  70.     CLS
  71.     EAGLE NOATTREMUL > NUL
  72.     NONUMLOK
  73.     REM --- READ CHOICE SET BY SCHOICE ---
  74.     GCHOICE
  75.     REM --- ALWAYS CHECK FOR HIGHEST NUMBER FIRST ---
  76.     IF ERRORLEVEL 2 GOTO WINDOWS
  77.     IF ERRORLEVEL 1 GOTO DESQVIEW
  78.     GOTO DRDOSBEG
  79.     :WINDOWS
  80.     ECHO  **** LOADING WINDOWS ****
  81.     CD\OS\WIN
  82.     WIN
  83.     GOTO END
  84.     :DESQVIEW
  85.     ECHO  **** LOADING DESQVIEW ****
  86.     LOADHI /R:2 BTRIEVE.EXE /P:4096 /M:16
  87.     LOADHI /R:1 C:\APPS\SYSUTIL\ADCACHE.COM -a2048 -w1
  88.     CD\OS\DV
  89.     PAUSE
  90.     XDV
  91.     GOTO END
  92.     REM The DRDOSBEG and DRDOSEND labels tell the SETUP program which
  93.     REM statements it should process. Put any additional statements for
  94.     REM DR DOS between these two labels. Any other statements e.g. for
  95.     REM other operating systems should be placed outside the labels.
  96.     :DRDOSBEG
  97.     ECHO  **** LOADING DR DOS ****
  98.     HILOAD BTRIEVE.EXE /P:4096 /M:16
  99.     HILOAD C:\APPS\SYSUTIL\ADCACHE.COM -a0 -w1
  100.     HILOAD C:\OS\DRDOS\SWITCHER.COM
  101.     MEMMAX -U >NUL
  102.     :DRDOSEND
  103.     :END
  104.     CD\
  105.  
  106. These programs are using the Keyboard Reset parm in the BIOS data area.     The
  107. only time this parm is used is when you press <CTRL>+<ALT>+<DEL>, so I don't
  108. think you will have any problems.
  109.  
  110. I can be reached via COMPUSERV @ 72727,436 and my mailing address is:
  111.  
  112. Scott M. Thomas
  113. 499 S. Waverly St.
  114. Columbus, OH  43213
  115. <EOF>
  116.  
  117.